from base.base_actions import BaseAction
from element.order_pay_element import OrderPayElement


class OrderPayPage(BaseAction):
    # 获取订单状态信息
    def get_text(self):
        return self.find_e(OrderPayElement.TIPS_INFO).text

    # 点击货到付款支付方式
    def click_payment_cod(self):
        return self.click(OrderPayElement.PAYMENT_COD)

    # 点击 确认支付方式 按钮
    def click_pay_btn(self):
        return self.click(OrderPayElement.PAY_BTN)
